package config;

import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.util.Properties;

public class ConfigFile {
	
	private static Properties config;
	
	private ConfigFile() {}
	
	public static void init(String fileLoc)
		throws FileNotFoundException, IOException {
		config = new Properties();
		config.load(new FileReader(fileLoc));
	}
	
	public static String getProperty(String key) {
		return config.getProperty(key);
	}
}
